//
//  THFlowEarnAutoMyPubModel.m
//  YJB
//
//  Created by 中电大维 on 2017/2/5.
//  Copyright © 2017年 YJB. All rights reserved.
//

#import "THFlowEarnAutoMyPubModel.h"

@implementation THFlowEarnAutoMyPubModel
+(NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"ID":@"id",
             @"userid":@"userid",
             @"sitename":@"sitename",
             @"url":@"url",
             @"create_time":@"create_time",
             @"gold_one":@"gold_one",
             @"totalgold":@"totalgold",
             @"surflimit":@"surflimit",
             @"surfedcount":@"surfedcount",
             @"froze":@"froze"};
}
- (CGFloat)cellHeight
{
    if (!_cellHeight) {
        CGFloat space = 40;
        CGFloat view_height = 15;
        CGFloat title_height = 0;
        if (_sitename.length) {
            
            title_height = [NSString heightForString:_sitename fontSize:16 andWidth:TableCell_TitleWidth];
            title_height = title_height>=38.5?38.5:title_height;
            title_height = title_height<26?15:title_height;
            _titleHeight = title_height;
            _cellHeight = space+view_height+title_height;
        }
    }
    return _cellHeight;
}
@end
